﻿@model IEnumerable<TGIApp.Web.Models.SellTicketViewModelForIndex>
@{
    //ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    @ViewBag.Title
    </h2>
@using (Html.BeginForm())
{
    <fieldset>
        @{ if (ViewBag.Events != null)
           { 
            <div class="editor-label">
                @Html.LabelForModel("Event")
            </div>
            <div class="editor-field">
                @Html.DropDownList("event_id", new SelectList(ViewBag.Events, "Id", "Name"))
            </div>
           }
        }
        @{ if (ViewBag.Venues != null)
           {
            <div class="editor-label">
                @Html.LabelForModel("Venue")
            </div> 
            <div class="editor-field">
                @Html.DropDownList("venue_id", new SelectList(ViewBag.Venues, "Id", "Name"))
            </div>
           }
   
        }
        @*@Html.ActionLink("Get Tickets", "Index")*@
        <input type="submit" value="Get Tickets" />
    </fieldset>
}
@Html.Partial("_SellTicketIndex")
